home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Leser 19
/
Amiga Plus Leser CD 19.iso
/
Tools
/
Development
/
source-highlight-1.6.1
/
Doc
/
README.compile_VC6
< prev
next >
Wrap
Text File
|
2002-11-17
|
10KB
|
219 lines
==============================================================
COMPILING with WIN32 using the Visual C (Version 6.0) compiler
==============================================================
This is a mail I received; I haven't tested the changes, anyway, but you
may find it useful.
Many thanks to Nazar
Here's the mail
From: "Nazar Gabriel" <nazargabriel@hotmail.com>
To: bug-cpp2html@gnu.org
Subject: changes required for porting to win32-VC6.0
Date: Sun, 17 Dec 2000 12:12:22 -0800
To whom it may concern,
Attached please find a list of changes that were required to port cpp2html
to WIN32 using the Visual C (Version 6.0) compiler.
best regards,
Nazar
processing FILE:getopt.c C:\progra~1\micros~2\myprojects\cpp2html\getopt.c
Line added before (55),<#ifdef WIN32>
Line added before (55),<#define alloca _alloca>
Line added before (55),<void *_alloca(size_t size);>
Line added before (55),<#include <string.h>>
Line added before (55),<#endif // WIN32>
Line added before (55),<>
Line # (456)< if (s - nextchar == strlen (p->name))>
replaced with< if (((size_t)(s - nextchar)) == strlen (p->name))>
getopt.c C:\progra~1\micros~2\myprojects\cpp2html\getopt.c is different(7).
processing FILE:getopt1.c C:\progra~1\micros~2\myprojects\cpp2html\getopt1.c
processing FILE:optparser.cc
C:\progra~1\micros~2\myprojects\cpp2html\optparser.cpp
Line # (37)<#ifdef HAVE_CONFIG_H>
replaced with<#ifdef WIN32>
Line # (38)<#include "config.h">
replaced with<#ifdef __cplusplus>
Line # (39)<#endif // HAVE_CONFIG_H>
replaced with< extern "C" void parseTags(void);>
Line added before (41),<#ifdef HAVE_CONFIG_H>
Line added before (41),<#include "config.h">
Line added before (41),<#endif // HAVE_CONFIG_H>
Line added before (41),<>
Line # (59),deleted<void parseTags() ;>
Line # (60),deleted<>
Line added before (410),<#ifdef WIN32>
Line added before (410),<#define alloca _alloca>
Line added before (410),<void *_alloca(size_t size);>
Line added before (410),<>
Line added before (410),<#endif // WIN32>
Line added before (410),<>
Line added before (410),<>
Line # (936)<void parseTags() {>
replaced with<void parseTags(void) {>
Line # 966,< strstream str ;>
Commented out,< //strstream str;>
Line # (967)< str << "*** " << s << " on option # " << line << ends ;>
replaced with< cerr << "*** " << s << " on option # " << line << endl ;>
Line # (968)< printError( str.str(), cerr ) ;>
replaced with< cerr << "Using default tags..." << endl;>
optparser.cc C:\progra~1\micros~2\myprojects\cpp2html\optparser.cpp is
different(21).
processing FILE:optscanner.cc
C:\progra~1\micros~2\myprojects\cpp2html\optscanner.cpp
Line added before (24),<#ifndef WIN32>
Line # (26)</* Use prototypes in function declarations. */>
replaced with<#endif // WIN32>
Line # (29)</* The "const" storage-class-modifier is valid. */>
replaced with<#ifdef WIN32>
Line # (30)<#define YY_USE_CONST>
replaced with<#define isatty _isatty>
Line added before (32),</* Use prototypes in function declarations. */>
Line added before (32),<#define YY_USE_PROTOS>
Line added before (32),<>
Line added before (32),</* The "const" storage-class-modifier is valid. */>
Line added before (32),<#define YY_USE_CONST>
Line added before (32),<>
optscanner.cc C:\progra~1\micros~2\myprojects\cpp2html\optscanner.cpp is
different(11).
processing FILE:scanner.cc
C:\progra~1\micros~2\myprojects\cpp2html\scanner.cpp
Line added before (24),<#ifndef WIN32>
Line # (26)</* Use prototypes in function declarations. */>
replaced with<#endif // WIN32>
Line # (29)</* The "const" storage-class-modifier is valid. */>
replaced with<#ifdef WIN32>
Line # (30)<#define YY_USE_CONST>
replaced with<#define isatty _isatty>
Line added before (32),</* Use prototypes in function declarations. */>
Line added before (32),<#define YY_USE_PROTOS>
Line added before (32),<>
Line added before (32),</* The "const" storage-class-modifier is valid. */>
Line added before (32),<#define YY_USE_CONST>
Line added before (32),<>
scanner.cc C:\progra~1\micros~2\myprojects\cpp2html\scanner.cpp is
different(11).
processing FILE:yywrap.c C:\progra~1\micros~2\myprojects\cpp2html\yywrap.c
processing FILE:main.cc C:\progra~1\micros~2\myprojects\cpp2html\main.cpp
Line added before (19),<#ifdef WIN32>
Line added before (19),<#define PACKAGE "cpp2html">
Line added before (19),<#define VERSION "1.2.0">
Line added before (19),<#endif // WIN32>
Line added before (19),<>
Line added before (19),<>
Line # (57)<extern int parseTags() ;>
replaced with<#ifdef WIN32>
SL=< print_text( copyright_text_length, copyright_text ) ;>
ADDED AFTER OLD Line #(359): static char *pszCopyRightText[] = {
ADDED AFTER OLD Line #(359): "Copyright (C) 1999, 2000, Lorenzo Bettini ",
ADDED AFTER OLD Line #(359): "<lorenzo.bettini@penteres.it>",
ADDED AFTER OLD Line #(359): " cpp2html comes with ABSOLUTELY NO
WARRANTY.",
ADDED AFTER OLD Line #(359): " This is free software; you may redistribute
copies of cpp2html",
ADDED AFTER OLD Line #(359): " under the terms of the GNU General Public
License.",
ADDED AFTER OLD Line #(359): " For more information about these matters, see
the file named COPYING.",
ADDED AFTER OLD Line #(359): " Written by Lorenzo Bettini
<lorenzo.bettini@penteres.it>",
ADDED AFTER OLD Line #(359): " Report bugs to <bug-cpp2html@gnu.org>\n"
ADDED AFTER OLD Line #(359): };
ADDED AFTER OLD Line #(359):
ADDED AFTER OLD Line #(359): print_text(sizeof(pszCopyRightText)/
sizeof(char *), pszCopyRightText);
ADDED AFTER OLD Line #(359):}
ADDED AFTER OLD Line #(359):
ADDED AFTER OLD Line #(359):void
ADDED AFTER OLD Line #(359):print_help()
ADDED AFTER OLD Line #(359):{
ADDED AFTER OLD Line #(359): static char *pszHelpText[] = {
ADDED AFTER OLD Line #(359): "Usage: cpp2html [OPTION]... [INPUT-FILE]...",
ADDED AFTER OLD Line #(359): "cpp2html < INPUT-FILE > OUTPUT-FILE
[OPTION]...",
ADDED AFTER OLD Line #(359): "given a source C/C++ file, produces an html
source with syntax highlighting.",
ADDED AFTER OLD Line #(359): " -v, --verbose verbose mode on",
ADDED AFTER OLD Line #(359): " -d, --doc creates html with
title, header...",
ADDED AFTER OLD Line #(359): " -c, --css=URL use a css for
formatting (implies --doc)",
ADDED AFTER OLD Line #(359): " -T, --title=TITLE give title to the
html (implies --doc)",
ADDED AFTER OLD Line #(359): " -i, --input=FILE input file
(default standard input)",
ADDED AFTER OLD Line #(359): " -o, --output=FILE output file
(default standard output)",
ADDED AFTER OLD Line #(359): " -t, --tab=TABLEN specify tab length
(default 8)",
ADDED AFTER OLD Line #(359): " -V, --version print version",
ADDED AFTER OLD Line #(359): " Written by Lorenzo Bettini
<lorenzo.bettini@penteres.it>",
ADDED AFTER OLD Line #(359): " Report bugs to <bug-cpp2html@gnu.org>"
ADDED AFTER OLD Line #(359): };
ADDED AFTER OLD Line #(359): print_text(sizeof(pszHelpText)/ sizeof(char
*), pszHelpText);
ADDED AFTER OLD Line #(359):}
ADDED AFTER OLD Line #(359):
ADDED AFTER OLD Line #(359):void
ADDED AFTER OLD Line #(359):print_text( int len, char *text[] )
ADDED AFTER OLD Line #(359):{
ADDED AFTER OLD Line #(359): for ( int i = 0 ; i < len ; ++i )
ADDED AFTER OLD Line #(359): cout << text[i] << endl ;
main.cc C:\progra~1\micros~2\myprojects\cpp2html\main.cpp is different(47).
processing FILE:generators.cc
C:\progra~1\micros~2\myprojects\cpp2html\generators.cpp
processing FILE:tags.cc C:\progra~1\micros~2\myprojects\cpp2html\tags.cpp
processing FILE:messages.cc
C:\progra~1\micros~2\myprojects\cpp2html\messages.cpp
processing FILE:cmdline.c C:\progra~1\micros~2\myprojects\cpp2html\cmdline.c
Line added before (34),<#ifdef WIN32 >
Line added before (34),<#include <string.h>>
Line added before (34),<>
Line added before (36),<#define HAVE_STRDUP>
Line added before (36),<#endif // HAVE_STRDUP>
Line added before (36),<>
Line added before (36),<#endif // WIN32>
Line added before (36),<>
Line added before (36),<#ifndef HAVE_STRDUP>
Line added before (36),<>
cmdline.c C:\progra~1\micros~2\myprojects\cpp2html\cmdline.c is
different(10).
processing FILE:main.h C:\progra~1\micros~2\myprojects\cpp2html\main.h
processing FILE:colors.h C:\progra~1\micros~2\myprojects\cpp2html\colors.h
processing FILE:decorators.h
C:\progra~1\micros~2\myprojects\cpp2html\decorators.h
processing FILE:generators.h
C:\progra~1\micros~2\myprojects\cpp2html\generators.h
processing FILE:keys.h C:\progra~1\micros~2\myprojects\cpp2html\keys.h
processing FILE:list.h C:\progra~1\micros~2\myprojects\cpp2html\list.h
processing FILE:optparser.h
C:\progra~1\micros~2\myprojects\cpp2html\optparser.h
processing FILE:tags.h C:\progra~1\micros~2\myprojects\cpp2html\tags.h
Line added before (3),<#ifdef WIN32>
Line added before (3),<#include <string.h>>
Line added before (3),<#endif // WIN32>
Line added before (3),<>
tags.h C:\progra~1\micros~2\myprojects\cpp2html\tags.h is different(4).
processing FILE:textgen.h C:\progra~1\micros~2\myprojects\cpp2html\textgen.h
processing FILE:tokens.h C:\progra~1\micros~2\myprojects\cpp2html\tokens.h
processing FILE:version.h C:\progra~1\micros~2\myprojects\cpp2html\version.h
processing FILE:messages.h
C:\progra~1\micros~2\myprojects\cpp2html\messages.h
processing FILE:copyright.h
C:\progra~1\micros~2\myprojects\cpp2html\copyright.h
processing FILE:helptext.h
C:\progra~1\micros~2\myprojects\cpp2html\helptext.h
processing FILE:cmdline.h C:\progra~1\micros~2\myprojects\cpp2html\cmdline.h
processing FILE:getopt.h C:\progra~1\micros~2\myprojects\cpp2html\getopt.h